package S10.first;
public class Circle implements Shape{ //Circle实现Shape接口
	private double radius;
	public Circle(double radius) {
		this.radius=radius;
	}
	@Override
	public double getArea() {
		return Math.PI*radius*radius;
	}
	@Override
	public String toString() {
		return String.format("圆的半径：%.2f，其面积为：%.2f", radius, getArea());
	}
}
